home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’95 / Menu Controls / MDrawShapes.cp < prev    next >
Encoding:
Text File  |  1995-06-24  |  1.1 KB  |  62 lines  |  [TEXT/MPS ]

  1. // Copyright © 1994-95 by Apple Computer, Inc. All rights reserved.
  2. // MDrawShapes.cp
  3.  
  4. #ifndef __UDRAWSHAPES__
  5. #include "UDrawShapes.h"
  6. #endif
  7.  
  8. // MacApp
  9.  
  10. #ifndef __UDIALOG__
  11. #include <UDialog.h>
  12. #endif                     
  13.  
  14. #ifndef __UERRORMGR__
  15. #include <UErrorMgr.h>
  16. #endif                     
  17.  
  18. #ifndef __UFLOATWINDOW__
  19. #include "UFloatWindow.h"
  20. #endif
  21.  
  22. #ifndef __UMACAPPGLOBALS__
  23. #include <UMacAppGlobals.h>
  24. #endif
  25.  
  26. #ifndef __UMACAPPUTILITIES__
  27. #include <UMacAppUtilities.h>
  28. #endif
  29.  
  30. #ifndef __UMENUVIEW__
  31. #include <UMenuView.h>
  32. #endif
  33.  
  34. #ifndef __UPRINTING__
  35. #include <UPrinting.h>
  36. #endif
  37.  
  38.  
  39. //----------------------------------------------------------------------------------------
  40. // main: 
  41. //----------------------------------------------------------------------------------------
  42. #pragma push
  43. #pragma processor 68000
  44. #pragma segment Main
  45.  
  46. void main()
  47. {
  48.     InitUMacApp(2);                    // Initialize MacApp with 2 calls to MoreMasters.
  49.  
  50.     InitUDialog();
  51.     InitUMenuView();
  52.     InitUFloatWindow();
  53.     InitUPrinting();
  54.  
  55.     TShapeApplication* aShapeApplication = new TShapeApplication;
  56.     aShapeApplication->IShapeApplication();
  57.     aShapeApplication->Run();
  58.  
  59. } // main
  60.  
  61. #pragma pop
  62.